
TARGET=freertos_task

PROJECT_ROOT=../../..
SRC_C+=$(wildcard *.c)

INCLUDE +=-I../sys -I.

#sys

SYS_DIR=../sys
include $(SYS_DIR)/sys.mk
SRC_C+=$(SRC_C_SYS)
INCLUDE +=$(INCLUDE_SYS)

#FreeRTOS
FreeRTOS_DIR=../FreeRTOS
include $(FreeRTOS_DIR)/freertos.mk
SRC_C+=$(SRC_C_FreeRTOS)
INCLUDE +=$(INCLUDE_FreeRTOS)


#SRAM RUN BROM AREA
LDSCRIPT=$(PROJECT_ROOT)/drivers/f1c100s_dram.ld

# add eGON.BT0 header bootloader need
CFLAGS+=-DLOAD_HEADER

# USE FREERTOS
CFLAGS+=-DUSE_FREERTOS

# printf size optimization
CFLAGS+=-DPRINTF_SUPPORT_DECIMAL_SPECIFIERS=0 -DPRINTF_SUPPORT_EXPONENTIAL_SPECIFIERS=0

include $(PROJECT_ROOT)/drivers/project.mk